package aop.xyz.myapp.domain;

public abstract class IEntity {
	public static final Integer STATUS_NEW = 0;
	public static final Integer STATUS_PERSISTED = 1;
	public static final Integer STATUS_DELETED = 2;
	
	/**
	 * The status of current Entity.
	 * It relate to domain object persistence. 
	 */
	private Integer status = STATUS_NEW;
	
	private Long id;

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStatus() {
		return status;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

}
